package command;

/**
 * User: Alexander Martyushov
 * Date: 12/11/12
 * Time: 7:07 AM
 */
public class StereoOnWithCDCommand implements Command {

    Stereo stereo;

    public StereoOnWithCDCommand(Stereo stereo){
        this.stereo = stereo;
    }

    public void execute(){
        stereo.on();
        stereo.setCD();
        stereo.setVolume();
    }


    public void undo() {
        stereo.off();
    }
}
